/*    file: RtpDumpFormat.h
 *    desc:
 *   
 * created: 2014-07-21 15:26:07
 *  author: zhengchuanjiang
 * company: 
 */ 


#if !defined RTPDUMPFORMAT_H_
#define RTPDUMPFORMAT_H_

#include <Winsock2.h>
////////////////////////////////////////////////////////////////////////////

typedef struct {
  struct timeval start;  /* start of recording (GMT) */
  UINT32 source;        /* network source (multicast address) */
  UINT16 port;          /* UDP port */
} RD_hdr_t;

typedef struct {
  UINT16 length;    /* length of packet, including this header (may 
                        be smaller than plen if not whole packet recorded) */
  UINT16 plen;      /* actual header+payload length for RTP, 0 for RTCP */
  UINT32 offset;    /* milliseconds since the start of recording */
} RD_packet_t;


////////////////////////////////////////////////////////////////////////////
#endif //RTPDUMPFORMAT_H_

